package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.TeZhongInformation;
import com.ruoyi.system.mapper.AquacultureInformationMapper;
import com.ruoyi.system.mapper.TeZhongInformationMapper;
import com.ruoyi.system.service.IAquacultureInformationService;
import com.ruoyi.system.service.TeZhongInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工厂化育苗、养殖技术经济资源信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-09
 */
@Service
public class TeZhongInformationServiceImpl implements TeZhongInformationService 
{
    @Autowired
    private TeZhongInformationMapper teZhongInformationMapper;

    /**
     * 查询工厂化育苗、养殖技术经济资源信息
     * 
     * @param id 工厂化育苗、养殖技术经济资源信息主键
     * @return 工厂化育苗、养殖技术经济资源信息
     */
    @Override
    public TeZhongInformation selectAquacultureInformationById(Long id)
    {
        return teZhongInformationMapper.selectAquacultureInformationById(id);
    }

    /**
     * 查询工厂化育苗、养殖技术经济资源信息列表
     * 
     * @param teZhongInformation 工厂化育苗、养殖技术经济资源信息
     * @return 工厂化育苗、养殖技术经济资源信息
     */
    @Override
    public List<TeZhongInformation> selectAquacultureInformationList(TeZhongInformation teZhongInformation)
    {
        return teZhongInformationMapper.selectAquacultureInformationList(teZhongInformation);
    }

    /**
     * 新增工厂化育苗、养殖技术经济资源信息
     * 
     * @param teZhongInformation 工厂化育苗、养殖技术经济资源信息
     * @return 结果
     */
    @Override
    public int insertAquacultureInformation(TeZhongInformation teZhongInformation)
    {
        return teZhongInformationMapper.insertAquacultureInformation(teZhongInformation);
    }

    /**
     * 修改工厂化育苗、养殖技术经济资源信息
     * 
     * @param teZhongInformation 工厂化育苗、养殖技术经济资源信息
     * @return 结果
     */
    @Override
    public int updateAquacultureInformation(TeZhongInformation teZhongInformation)
    {
        return teZhongInformationMapper.updateAquacultureInformation(teZhongInformation);
    }

    /**
     * 批量删除工厂化育苗、养殖技术经济资源信息
     * 
     * @param ids 需要删除的工厂化育苗、养殖技术经济资源信息主键
     * @return 结果
     */
    @Override
    public int deleteAquacultureInformationByIds(Long[] ids)
    {
        return teZhongInformationMapper.deleteAquacultureInformationByIds(ids);
    }

    /**
     * 删除工厂化育苗、养殖技术经济资源信息信息
     * 
     * @param id 工厂化育苗、养殖技术经济资源信息主键
     * @return 结果
     */
    @Override
    public int deleteAquacultureInformationById(Long id)
    {
        return teZhongInformationMapper.deleteAquacultureInformationById(id);
    }
}
